<div class="bg-light lter b-b wrapper-md">
    <h1 class="m-n font-thin h3">提现</h1><br>
    <h1 class="m-n font-thin h4">账户:{{accountUserObj.username}}&nbsp;&nbsp;&nbsp; 当前余额:¥{{accountUserObj.money}}元</h1>
</div>
<!-- toaster directive -->
<toaster-container toaster-options="{'position-class': 'toast-top-right', 'close-button':true}"></toaster-container> 
<div class="wrapper-md" ng-controller="fundCtrl">
    <tabset class="tab-container" ng-init="steps={percent:20, step1:true, step2:false, step3:false}">
        <tab heading="第一步" active="steps.step1" select="steps.percent=10">
            <h4>提现进度</h4>
            <progressbar value="steps.percent" class="progress-xs" type="success"></progressbar>
            <form name="step1" class="form-validation">

                <p>提现金额:</p>
                <input type="text" name="money" class="form-control" ng-model="desposit.money" ng-pattern="/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/"
                    placeholder="金额(最少10元) 单位:元*" required ng-change="step1.money.$valid ? (steps.percent=15) : (steps.percent=10)" ui-validate=" '$value >= 5' ">
                <p class="m-t">收款人:</p>
                <input type="text" name="name" class="form-control" ng-model="desposit.payee_name" required placeholder="收款人*" ng-change="step1.name.$valid ? (steps.percent=20) : (steps.percent=15)">
                <p class="m-t">收款人银行卡号:</p>
                <input type="text" name="cartNo" class="form-control" ng-model="desposit.payee_ba_mumber" ng-pattern="/^([1-9]{1})(\d{14}|\d{18})$/"
                    placeholder="收款人银行卡号*" required ng-change="step1.cartNo.$valid ? (steps.percent=20) : (steps.percent=15)">

                <br class="m-t" /> 开户行名称:
                <select class="input-sm form-control w-sm inline v-middle" name="bank_name" ng-model="desposit.payee_ba_bank_name" required ng-change="step1.bank_name.$valid ? (steps.percent=25) : (steps.percent=20)">
                    <option value="">请选择开户行</option>
                    <option value="ICBC">工商银行</option>
                    <option value="ABC">农业银行</option>
                    <option value="BOC">中国银行</option>
                    <option value="CCB">建设银行</option>
                    <option value="BCOM">交通银行</option>
                    <option value="PSBC">邮政储蓄银行</option>
                    <option value="CTIB">中信银行</option>
                    <option value="CEB">光大银行</option>
                    <option value="HXBJ">华夏银行</option>
                    <option value="CMSB">民生银行</option>
                    <option value="SZPA">平安银行</option>
                    <option value="CMB">招商银行</option>
                    <option value="IBCN">兴业银行</option>
                    <option value="SPDB">浦发银行</option>
                    <option value="BOHC">渤海银行</option>
                    <option value="BOB">北京银行</option>
                    <option value="CGBC">广发银行</option>
                    <option value="NJCB">南京银行</option>
                    <option value="NBCB">宁波银行</option>
                    <option value="SHRB">上海农商银行</option>
                    <option value="HSCB">徽商银行</option>
                    <option value="JSBK">江苏银行</option>
                    <option value="BOS">上海银行</option>
                    <option value="CZSB">浙江银行</option>
                    <option value="HZCB">杭州银行</option>
                    <option value="EBCL">恒丰银行</option>
                    <option value="BJRC">北京农商银行</option>
                    <option value="GZCU">广州农商银行</option>
                    <option value="SJBC">盛京银行</option>
                    <option value="TJCB">天津银行</option>
                    <option value="CQRCB">重庆农商银行</option>
                    <option value="GBD">广东发展银行</option>
                    <option value="BEA">东亚银行</option>
                    <option value="BOCD">成都银行</option>
                    <option value="GZCB">广州商业银行</option>
                    <option value="BOWZ">温州银行</option>
                </select>

                开户行省:
                <select class="input-sm form-control w-sm inline v-middle" ng-model="desposit.payee_ba_bank_area" required ng-change="makeCityData(desposit.payee_ba_bank_area);step1.bank_area.$valid ? (steps.percent=30) : (steps.percent=25)">
                    <option value="">请选择开户省</option>
                    <option value="{{item.p}}" ng-repeat="item in areaData">{{item.p}}</option>
                </select>

                <div style="display: inline" ng-if="cityData">
                    开户行市:
                    <select class="input-sm form-control w-sm inline v-middle" ng-model="desposit.payee_ba_bank_City" required ng-change="step1.bank_city.$valid ? (steps.percent=35) : (steps.percent=30)">
                        <option value="">请选择开户行市</option>
                        <option value="{{item.n}}" ng-repeat="item in cityData">{{item.n}}</option>
                    </select>
                </div>



                <p class="m-t">收款人身份证号:</p>
                <input type="text" name="idCratNo" class="form-control" ng-model="desposit.payee_cert_no" ng-pattern="/(^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$)|(^[1-9]\d{5}\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{2}$)/"
                    placeholder="收款人身份证号*" required ng-change="step1.idCratNo.$valid ? (steps.percent=40) : (steps.percent=35)">
                <p class="m-t">收款人手机号:</p>
                <input type="text" name="phone" class="form-control" ng-model="desposit.payee_ba_mobile" ng-pattern="/^1[3|4|5|8][0-9]\d{4,8}$/" placeholder="收款人手机号*"
                    required ng-change="step1.phone.$valid ? (steps.percent=45) : (steps.percent=40)">
                <p class="m-t">备注</p>
                <input type="text" name="submitRemark" placeholder="备注*" class="form-control" ng-model="desposit.remarkSubmit" required ng-change="step1.submitRemark.$valid ? (steps.percent=50) : (steps.percent=45)">
                <div class="m-t m-b">
                    <button type="submit" ng-disabled="step1.$invalid" class="btn btn-default btn-rounded" ng-click="steps.step2=true">下一步</button>
                </div>
            </form>
        </tab>
        <tab heading="第二步" disabled="step1.$invalid" active="steps.step2" select="steps.percent=80">
            <form name="step2" class="form-validation">
                <p class="m-b">输入交易密码</p>
                <progressbar value="steps.percent" class="progress-xs" type="success"></progressbar>
                <p>交易密码:</p>
                <input type="password" name="paypwd" class="form-control" ng-model="desposit.paypwd" required ng-change="step2.paypwd.$valid ? (steps.percent=90) : (steps.percent=80)">
                <div class="m-t m-b">
                    <button type="button" class="btn btn-default btn-rounded" ng-click="steps.step1=true">上一步</button>
                    <button type="submit" ng-disabled="step2.$invalid" class="btn btn-info btn-rounded" ng-click="steps.step3=true;despositFun()">确认提现</button>
                </div>
            </form>
        </tab>
    </tabset>

</div>